
import {get,post} from '../../utils/request' 
import { TreeData } from './type';
// 获取楼栋信息
export const getBuildingList=(pid:number | null)=>get("building/list",{pid});


//添加楼栋信息
export const addBuilding=(data:TreeData)=> post("building/add",data);


//删除楼栋信息
export const delBuilding=(data:number)=> get("building/delete",{id:data});